package com.itheima.annotationdemo1;

@MyBook(name = "张三", age = 18, address = {"北京", "上海"})
//@A(value = "delete")
//@A("delete")    //特殊属性value，如果注解中只有一个value属性，那么使用注解时value名称可以省略不写
@A("delete")        //name有默认值，可以省略不写
public class Demo1 {

    //注解的作用：对Java中类、方法、成员变量等做标记，然后进行特殊处理

    @MyBook(name = "李四", age = 26, address = {"北京", "上海"})
    public static void main(@A("delete") String[] args) {
        @A("delete")
        String str = "hello";

    }
}
